#!/bin/sh

export args=$1

function ble_start()
{
        plat_soc=`lsmod | grep "plat_soc"
        if [ -z "$plat_soc" ]; then
                insmod /ko/wifi/plat_soc.ko
        fi

        ble_soc=`lsmod | grep "ble_soc"
        if [ -z "$ble_soc" ]; then
                insmod /ko/wifi/ble_soc.ko
        fi
}

function ble_stop()
{
        rmmod ble_soc.ko
}

case $args in
        start)
                ble_start
                ;;
        stop)
                ble_stop
                ;;
        -h)
                echo 'Options: start stop '
                ;;
        *)
                echo 'Use '-h' to display command line options of sub-processes'
                ;;
esac
